<?php
/*
 * -File        $Id: switch.builder.php,v 1.2 2005/02/08 21:50:39 amadeus Exp $
 * -License     LGPL (http://www.gnu.org/copyleft/lesser.html)
 * -Copyright   2004, Nexista
 * -Author      joshua savage, js@nexista.com
 * -Author      Albert Lash, alby@thirteen.net
 */


/**
 * @package     Nexista
 * @subpackage  Builders
 * @author      Joshua Savage <js@nexista.com>
 */
 
/**
 * This class handles the tag by the same name in the sitemap building process
 *
 * @package     Nexista
 * @subpackage  Builders
 */

class SwitchBuilder extends Builder
{


    /**
     * Returns start code for this tag.
     *
     * @return   string Final code to insert in gate
     * @see      Builder::getCode()
     */

    public function getCodeStart()
    {
        $path = new PathBuilder();
        $code[] = 'switch('.$path->get($this->action->getAttribute('name'), 'flow', JOIN_DOUBLE_QUOTE).') {';
        return implode(NX_BUILDER_LINEBREAK, $code);

    }




}

?>